/** ###################################################################
**     Filename  : Nokia5110.C
**     Project   : Nokia5110
**     Processor : 56F8013VFAE
**     Version   : Driver 01.14
**     Compiler  : Metrowerks DSP C Compiler
**     Date/Time : 2012-3-20, 21:35
**     Abstract  :
**         Main module.
**         This module contains user's application code.
**     Settings  :
**     Contents  :
**         No public methods
**
** ###################################################################*/
/* MODULE Nokia5110 */


/* Including needed modules to compile this module/procedure */
#include "Cpu.h"
#include "Events.h"
#include "Bits1.h"
/* Including shared modules, which are used for whole project */
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
#include "5110.h"
//#include "string.h"

void main(void)
{

  /* Write your local variable definition here */
  int n;  

  /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
  PE_low_level_init();
  /*** End of Processor Expert internal initialization.                    ***/

  /* Write your code here */

  LcdInit();
  LcdSetXY(0,1);
  
  for(;;) {
  
      LcdSetXY(5,0);
      delay();
      for(n=0;n<24;n++)
      {
      	LcdWriteByte(0,1);
      	delay();
      }
      
      LcdSetXY(5,0);
      delay();
      WriteChar(2+0x30);
      delay();
      WriteChar(0+0x30);
      delay();
      WriteChar(1+0x30);
      delay();
      WriteChar(2+0x30);
      Cpu_Delay100US(200);
  

  }
  
   
}

/* END Nokia5110 */
/*
** ###################################################################
**
**     This file was created by Processor Expert 3.00 [04.35]
**     for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
